<script setup lang='ts'>

  const props = defineProps({
    title: {
      type: String,
      default: '标题'
    }
  })

</script>


<template>
  <div class="box">
    <header>{{ title }}</header>
    <div class="content">
      <slot />
    </div>
  </div>
</template>


<style scoped lang="scss">
.box {
  width: 250px;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  box-sizing: border-box;
  margin: 20px 30px;
}
header {
  height: 40px;
  background-color: #A2A5B8;
  text-align: center;
  line-height: 40px;
  color: #fff;
  font-size: 18px;
}

.content {
  height: 260px;
  background-color: #F7BF68;
  box-sizing: border-box;
  padding: 10px;
}
</style>